﻿@model Back_end.Models.ApplicationUser

@{
    ViewBag.Title = "详细";
    int complaintsCount = Model.Complaints.Count();
    string auth = (Model.HadAuthentication ? "已验证" : "未验证");
    string avatarPath = Model.AvatarPath;
    string name = Model.UserName;

    if (Model.LockoutEndDateUtc > DateTime.UtcNow)
    { name += "[登陆锁定]"; }
}

<h2>@ViewBag.Title</h2>

<div class="row">
	<div class="col-md-3"></div>
	<div class="well col-md-6">
		<table>
			<tr>
				<td style="width:120px"><img src=@avatarPath class="img-thumbnail" /></td>
				<td style="margin-left:40px">
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-user" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.UserName)：
							@name
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-time" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.RegisterDate)：
							@Html.DisplayFor(model => model.RegisterDate)
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-map-marker" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.Location)：
							@Html.DisplayFor(model => model.Location)
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-check" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.HadAuthentication)：
							@auth
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-piggy-bank" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.TotleCredit)：
							@Html.DisplayFor(model => model.TotleCredit)
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-usd" style="margin-right:10px"></span>
						<font size="3">
							@Html.DisplayNameFor(model => model.Credit)：
							@Html.DisplayFor(model => model.Credit)
						</font>
					</div>
					<div style="margin-left:40px">
						<span class="glyphicon glyphicon-exclamation-sign" style="margin-right:10px"></span>
						共举报了 @Html.ActionLink(Model.Complaints.Count().ToString(), "Index", "Complaints", new { search = Model.UserName, genre = "发布者" }, null) 次
					</div>
				</td>
			</tr>
		</table>
		<div class="col-md-3"> </div>
	</div>
</div>

<p style="clear:both">
    @Html.ActionLink("编辑", "Edit", new { id = Model.Id })
    @Html.ActionLink("返回列表", "Index")
</p>
